openFile
fun KiteDoc.openFile(path: String, password: String = "", epubSettings: EpubSettings = EpubSettings()): KiteDocument
Reads the file at path and opens it as whichever format it is.
The whole file is loaded into memory first: the engine has no incremental reader, so every source ends up as one byte array.
Throws
when the file cannot be read.
when it is neither a PDF nor an EPUB.